import * as THREE from "three";
// 导入轨道控制器
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
// 导入动画库
import gsap from "gsap";
// 导入dat.gui
import * as dat from "dat.gui";
// 目标： clock该对象用于跟踪时间;
// 目标：掌握gsap设置各种动画效果

// 创建场景
const scene = new THREE.Scene();

// 创建相机
const camera = new THREE.PerspectiveCamera(
  75,
  window.innerWidth / window.innerHeight,
  0.1,
  1000
); // 透视相机

camera.position.set(0, 0, 10);
scene.add(camera);
const loader = new GLTFLoader();
const dracoloader = new DRACOLoader();
dracoloader.setDecoderPath("./draco/gltf");
loader.setDRACOLoader(dracoloader);
console.log(loader);
loader.load("./model/test_1.glb", function (gltf) {
  console.log(gltf);
});
